package com.gdssoft.pdaweb.model.water;

/*
 *  捷达世软件（深圳）有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
 */
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

import com.gdssoft.pdaweb.model.PdaMdAssetInfo;

/**
 * PdaWaterMeter Base Java Bean, base class for the.oa.model, mapped directly to
 * database table
 * 
 * Avoid changing this file if not necessary, will be overwritten.
 * 
 * 
 */
public class PdaWaterMeter extends com.gdssoft.core.model.BaseModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected String amId;
	protected String position;
	protected String upId;
	protected String districtId;
	protected String buildingId;
	protected String aparmentId;
	protected String meterKind;
	protected String meterHl;
	protected String clientId;
	protected String indoor;
	protected String wlevel;
	protected String defaultRecorderId;
	protected String type;
	protected String setDate;
	protected String inputDate;
	protected String inputId;
	protected String useDate;
	protected String useAcceptid;
	protected String meterBrand;
	protected String meterModel;
	protected String isLongDistance;
	protected String isCharge;
	protected String isAddPressure;
	protected String isProportion;
	protected Integer maxValue;
	protected Integer warnvalue;
	protected String platcoordinates;
	protected String expressionId;
	protected String clearId;
	protected String createddt;
	protected String createdby;
	protected String lasteditdt;
	protected String lasteditby;
	protected String remark;
	protected String aparmentName;
	protected String isPlanned;
	protected Integer initDegree;
	protected Integer timesNum; // 倍率
	protected String isAlert; //是否换表
	
	protected PdaMdAssetInfo pdaMdAssetInfo;

	protected Integer toCrmFlag;
	
	public PdaWaterMeter() {
		super();
	}

	/**
	 * Default Key Fields Constructor for class PdaWaterMeter
	 */
	public PdaWaterMeter(String in_amId) {
		this.setAmId(in_amId);
	}

	public String getIsAlert() {
		return isAlert;
	}
	public void setIsAlert(String isAlert) {
		this.isAlert = isAlert;
	}
	
	public Integer getInitDegree() {
		return initDegree;
	}

	public void setInitDegree(Integer initDegree) {
		this.initDegree = initDegree;
	}

	public String getAmId() {
		return this.amId;
	}

	public void setAmId(String aValue) {
		this.amId = aValue;
	}

	public String getPosition() {
		return this.position;
	}

	public void setPosition(String aValue) {
		this.position = aValue;
	}

	public String getUpId() {
		return this.upId;
	}

	public void setUpId(String aValue) {
		this.upId = aValue;
	}

	public String getDistrictId() {
		return this.districtId;
	}

	public void setDistrictId(String aValue) {
		this.districtId = aValue;
	}

	public String getBuildingId() {
		return this.buildingId;
	}

	public void setBuildingId(String aValue) {
		this.buildingId = aValue;
	}

	public String getAparmentId() {
		return this.aparmentId;
	}

	public void setAparmentId(String aValue) {
		this.aparmentId = aValue;
	}

	public String getMeterKind() {
		return this.meterKind;
	}

	public void setMeterKind(String aValue) {
		this.meterKind = aValue;
	}

	public String getMeterHl() {
		return this.meterHl;
	}

	public void setMeterHl(String aValue) {
		this.meterHl = aValue;
	}

	public String getClientId() {
		return this.clientId;
	}

	public void setClientId(String aValue) {
		this.clientId = aValue;
	}

	public String getIndoor() {
		return this.indoor;
	}

	public void setIndoor(String aValue) {
		this.indoor = aValue;
	}

	public String getWlevel() {
		return this.wlevel;
	}

	public void setWlevel(String aValue) {
		this.wlevel = aValue;
	}

	public String getDefaultRecorderId() {
		return this.defaultRecorderId;
	}

	public void setDefaultRecorderId(String aValue) {
		this.defaultRecorderId = aValue;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String aValue) {
		this.type = aValue;
	}

	public String getSetDate() {
		return this.setDate;
	}

	public void setSetDate(String aValue) {
		this.setDate = aValue;
	}

	public String getInputDate() {
		return this.inputDate;
	}

	public void setInputDate(String aValue) {
		this.inputDate = aValue;
	}

	public String getInputId() {
		return this.inputId;
	}

	public void setInputId(String aValue) {
		this.inputId = aValue;
	}

	public String getUseDate() {
		return this.useDate;
	}

	public void setUseDate(String aValue) {
		this.useDate = aValue;
	}

	public String getUseAcceptid() {
		return this.useAcceptid;
	}

	public void setUseAcceptid(String aValue) {
		this.useAcceptid = aValue;
	}

	public String getMeterBrand() {
		return this.meterBrand;
	}

	public void setMeterBrand(String aValue) {
		this.meterBrand = aValue;
	}

	public String getMeterModel() {
		return this.meterModel;
	}

	public void setMeterModel(String aValue) {
		this.meterModel = aValue;
	}

	public String getIsLongDistance() {
		return this.isLongDistance;
	}

	public void setIsLongDistance(String aValue) {
		this.isLongDistance = aValue;
	}

	public String getIsCharge() {
		return this.isCharge;
	}

	public void setIsCharge(String aValue) {
		this.isCharge = aValue;
	}

	public String getIsAddPressure() {
		return this.isAddPressure;
	}

	public void setIsAddPressure(String aValue) {
		this.isAddPressure = aValue;
	}

	public String getIsProportion() {
		return this.isProportion;
	}

	public void setIsProportion(String aValue) {
		this.isProportion = aValue;
	}

	public Integer getMaxValue() {
		return this.maxValue;
	}

	public void setMaxValue(Integer aValue) {
		this.maxValue = aValue;
	}

	public Integer getWarnvalue() {
		return this.warnvalue;
	}

	public void setWarnvalue(Integer aValue) {
		this.warnvalue = aValue;
	}

	public String getPlatcoordinates() {
		return this.platcoordinates;
	}

	public void setPlatcoordinates(String aValue) {
		this.platcoordinates = aValue;
	}

	public String getExpressionId() {
		return this.expressionId;
	}

	public void setExpressionId(String aValue) {
		this.expressionId = aValue;
	}

	public String getClearId() {
		return this.clearId;
	}

	public void setClearId(String aValue) {
		this.clearId = aValue;
	}

	public String getCreateddt() {
		return this.createddt;
	}

	public void setCreateddt(String aValue) {
		this.createddt = aValue;
	}

	public String getCreatedby() {
		return this.createdby;
	}

	public void setCreatedby(String aValue) {
		this.createdby = aValue;
	}

	public String getLasteditdt() {
		return this.lasteditdt;
	}

	public void setLasteditdt(String aValue) {
		this.lasteditdt = aValue;
	}

	public String getLasteditby() {
		return this.lasteditby;
	}

	public void setLasteditby(String aValue) {
		this.lasteditby = aValue;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String aValue) {
		this.remark = aValue;
	}

	public String getAparmentName() {
		return aparmentName;
	}

	public void setAparmentName(String aparmentName) {
		this.aparmentName = aparmentName;
	}

	public String getIsPlanned() {
		return isPlanned;
	}

	public void setIsPlanned(String isPlanned) {
		this.isPlanned = isPlanned;
	}

	public Integer getTimesNum() {
		return timesNum;
	}

	public void setTimesNum(Integer timesNum) {
		this.timesNum = timesNum;
	}

	public boolean equals(Object object) {
		if (!(object instanceof PdaWaterMeter)) {
			return false;
		}
		PdaWaterMeter rhs = (PdaWaterMeter) object;
		return new EqualsBuilder().append(this.amId, rhs.amId)
				.append(this.position, rhs.position)
				.append(this.upId, rhs.upId)
				.append(this.districtId, rhs.districtId)
				.append(this.buildingId, rhs.buildingId)
				.append(this.aparmentId, rhs.aparmentId)
				.append(this.meterKind, rhs.meterKind)
				.append(this.meterHl, rhs.meterHl)
				.append(this.clientId, rhs.clientId)
				.append(this.indoor, rhs.indoor)
				.append(this.wlevel, rhs.wlevel)
				.append(this.defaultRecorderId, rhs.defaultRecorderId)
				.append(this.type, rhs.type).append(this.setDate, rhs.setDate)
				.append(this.inputDate, rhs.inputDate)
				.append(this.inputId, rhs.inputId)
				.append(this.useDate, rhs.useDate)
				.append(this.useAcceptid, rhs.useAcceptid)
				.append(this.meterBrand, rhs.meterBrand)
				.append(this.meterModel, rhs.meterModel)
				.append(this.isLongDistance, rhs.isLongDistance)
				.append(this.isCharge, rhs.isCharge)
				.append(this.isAddPressure, rhs.isAddPressure)
				.append(this.isProportion, rhs.isProportion)
				.append(this.maxValue, rhs.maxValue)
				.append(this.warnvalue, rhs.warnvalue)
				.append(this.platcoordinates, rhs.platcoordinates)
				.append(this.expressionId, rhs.expressionId)
				.append(this.clearId, rhs.clearId)
				.append(this.createddt, rhs.createddt)
				.append(this.createdby, rhs.createdby)
				.append(this.lasteditdt, rhs.lasteditdt)
				.append(this.lasteditby, rhs.lasteditby)
				.append(this.remark, rhs.remark).isEquals();
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973).append(this.amId)
				.append(this.position).append(this.upId)
				.append(this.districtId).append(this.buildingId)
				.append(this.aparmentId).append(this.meterKind)
				.append(this.meterHl).append(this.clientId).append(this.indoor)
				.append(this.wlevel).append(this.defaultRecorderId)
				.append(this.type).append(this.setDate).append(this.inputDate)
				.append(this.inputId).append(this.useDate)
				.append(this.useAcceptid).append(this.meterBrand)
				.append(this.meterModel).append(this.isLongDistance)
				.append(this.isCharge).append(this.isAddPressure)
				.append(this.isProportion).append(this.maxValue)
				.append(this.warnvalue).append(this.platcoordinates)
				.append(this.expressionId).append(this.clearId)
				.append(this.createddt).append(this.createdby)
				.append(this.lasteditdt).append(this.lasteditby)
				.append(this.remark).toHashCode();
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("amId", this.amId)
				.append("position", this.position).append("upId", this.upId)
				.append("districtId", this.districtId)
				.append("buildingId", this.buildingId)
				.append("aparmentId", this.aparmentId)
				.append("meterKind", this.meterKind)
				.append("meterHl", this.meterHl)
				.append("clientId", this.clientId)
				.append("indoor", this.indoor).append("wlevel", this.wlevel)
				.append("defaultRecorderId", this.defaultRecorderId)
				.append("type", this.type).append("setDate", this.setDate)
				.append("inputDate", this.inputDate)
				.append("inputId", this.inputId)
				.append("useDate", this.useDate)
				.append("useAcceptid", this.useAcceptid)
				.append("meterBrand", this.meterBrand)
				.append("meterModel", this.meterModel)
				.append("isLongDistance", this.isLongDistance)
				.append("isCharge", this.isCharge)
				.append("isAddPressure", this.isAddPressure)
				.append("isProportion", this.isProportion)
				.append("maxValue", this.maxValue)
				.append("warnvalue", this.warnvalue)
				.append("platcoordinates", this.platcoordinates)
				.append("expressionId", this.expressionId)
				.append("clearId", this.clearId)
				.append("createddt", this.createddt)
				.append("createdby", this.createdby)
				.append("lasteditdt", this.lasteditdt)
				.append("lasteditby", this.lasteditby)
				.append("remark", this.remark).toString();
	}


	public PdaMdAssetInfo getPdaMdAssetInfo() {
		return pdaMdAssetInfo;
	}

	public void setPdaMdAssetInfo(PdaMdAssetInfo pdaMdAssetInfo) {
		this.pdaMdAssetInfo = pdaMdAssetInfo;
	}

	public Integer getToCrmFlag() {
		return toCrmFlag;
	}

	public void setToCrmFlag(Integer toCrmFlag) {
		this.toCrmFlag = toCrmFlag;
	}
}
